// 基础
import Vue from 'vue'
import App from './App'
import router from './router'
import './permission'

import Vconsole from 'vconsole'
import myFns from './utils/myFns'
import store from './store'

// 饿了么
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 开发阶段
if (!process.env.VUE_APP_IS_PRO) {
  // 调试台
  const vConsole = new Vconsole()
  Vue.use(vConsole)
}

// 提示
Vue.config.productionTip = false
Vue.use(ElementUI)

// 全局原型
Vue.prototype.fn = myFns

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  store: store,
  components: { App },
  template: '<App/>'
})
